package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AVehiclesMapper;
import com.ruoyi.system.domain.AVehicles;
import com.ruoyi.system.service.IAVehiclesService;

/**
 * 车辆Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-31
 */
@Service
public class AVehiclesServiceImpl implements IAVehiclesService 
{
    @Autowired
    private AVehiclesMapper aVehiclesMapper;

    /**
     * 查询车辆
     * 
     * @param id 车辆主键
     * @return 车辆
     */
    @Override
    public AVehicles selectAVehiclesById(Long id)
    {
        return aVehiclesMapper.selectAVehiclesById(id);
    }

    /**
     * 查询车辆列表
     * 
     * @param aVehicles 车辆
     * @return 车辆
     */
    @Override
    public List<AVehicles> selectAVehiclesList(AVehicles aVehicles)
    {
        return aVehiclesMapper.selectAVehiclesList(aVehicles);
    }

    /**
     * 新增车辆
     * 
     * @param aVehicles 车辆
     * @return 结果
     */
    @Override
    public int insertAVehicles(AVehicles aVehicles)
    {
        return aVehiclesMapper.insertAVehicles(aVehicles);
    }

    /**
     * 修改车辆
     * 
     * @param aVehicles 车辆
     * @return 结果
     */
    @Override
    public int updateAVehicles(AVehicles aVehicles)
    {
        return aVehiclesMapper.updateAVehicles(aVehicles);
    }

    /**
     * 批量删除车辆
     * 
     * @param ids 需要删除的车辆主键
     * @return 结果
     */
    @Override
    public int deleteAVehiclesByIds(Long[] ids)
    {
        return aVehiclesMapper.deleteAVehiclesByIds(ids);
    }

    /**
     * 删除车辆信息
     * 
     * @param id 车辆主键
     * @return 结果
     */
    @Override
    public int deleteAVehiclesById(Long id)
    {
        return aVehiclesMapper.deleteAVehiclesById(id);
    }
}
